﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataForest.Utilities;

namespace DataForest.ViewModel.Dialogs
{
    public class ExcelDialogViewModel : BaseDialogModel
    {
        public ExcelDialogViewModel()
        {
            this.Title = "Als Excel Datei Speichern";
            this.excelTables = new List<int>() {1,2,3,4,5,6,7,8,9,10,11,12};
            this.ExcelTable = 1;
            this.OkayButton = "OK";
            this.CancelButton = "Abbrechen";
            this.FirstRowColumnNames = true;
        }

        private int excelTable;
        private bool firstRowColumnNames;
        private string cancelButton;
        private string okayButton;
        private List<int> excelTables;

        public int ExcelTable
        {
            get
            {
                return excelTable;
            }
            set
            {
                if (excelTable != value)
                {
                    excelTable = value;
                    OnPropertyChanged("ExcelTable");
                }
            }
        }
        public bool FirstRowColumnNames
        {
            get
            {
                return firstRowColumnNames;
            }
            set
            {
                if (firstRowColumnNames != value)
                {
                    firstRowColumnNames = value;
                    OnPropertyChanged("FirstRowColumnNames");
                }
            }
        }
        public string CancelButton
        {
            get
            {
                return cancelButton;
            }
            set
            {
                if (cancelButton != value)
                {
                    cancelButton = value;
                    OnPropertyChanged("CancelButton");
                }
            }
        }
        public string OkayButton
        {
            get
            {
                return okayButton;
            }
            set
            {
                if (okayButton != value)
                {
                    okayButton = value;
                    OnPropertyChanged("CancelButton");
                }
            }
        }
        public List<int> ExcelTables
        {
            get
            {
                return excelTables;
            }
            set
            {
                if (excelTables != value)
                {
                    excelTables = value;
                    OnPropertyChanged("ExcelTables");
                }
            }
        }
    }
}
